package guowei.guliuser.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import guowei.common.utils.PageUtils;
import guowei.common.utils.R;
import guowei.guliuser.user.entity.MemberEntity;
import guowei.guliuser.user.exception.PhoneNotOnlyOneException;
import guowei.guliuser.user.exception.UserNameNotOnlyOneException;
import guowei.guliuser.user.vo.LoginVoUser;
import guowei.guliuser.user.vo.RegMemVo;
import guowei.guliuser.user.vo.WeiBoToken;
import guowei.guliuser.user.vo.WeiboUser;

import java.util.Map;

/**
 * 会员
 *
 * @author guoguo
 * @email 1573746397@qq.com
 * @date 2023-05-21 12:30:01
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveRegMem(RegMemVo regMemVo);

    Boolean checkUserName(String userName) throws UserNameNotOnlyOneException;

    Boolean checkPhone(String phone) throws PhoneNotOnlyOneException;

    R loginVo(LoginVoUser vo);

    R saveWeiboUser(WeiBoToken weiBoToken);
}

